import request from '@/utils/request'

// 查询医生-团队列表
export function listDoctorteam(query) {
  return request({
    url: '/sysmanagement/doctorteam/list',
    method: 'get',
    params: query
  })
}

// 查询医生-团队详细
export function getDoctorteam(doctorId) {
  return request({
    url: '/sysmanagement/doctorteam/' + doctorId,
    method: 'get'
  })
}

// 新增医生-团队
export function addDoctorteam(data) {
  return request({
    url: '/sysmanagement/doctorteam',
    method: 'post',
    data: data
  })
}

// 修改医生-团队
export function updateDoctorteam(data) {
  return request({
    url: '/sysmanagement/doctorteam',
    method: 'put',
    data: data
  })
}

// 删除医生-团队
export function delDoctorteam(doctorId) {
  return request({
    url: '/sysmanagement/doctorteam/' + doctorId,
    method: 'delete'
  })
}
